package net.expectx.pay.gateway.dao.bean;

import java.io.Serializable;
import java.math.BigDecimal;

public class ProductOrderHeader implements Serializable {
    /**
     * 订单号
     *
     * @mbg.generated
     */
    private String orderId;

    /**
     * 逻辑删除（0：否，1：是）
     *
     * @mbg.generated
     */
    private Byte isDeleted;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Long gmtCreate;

    /**
     * 更新时间
     *
     * @mbg.generated
     */
    private Long gmtModified;

    /**
     * 商户订单ID
     *
     * @mbg.generated
     */
    private String merchantOrderId;

    /**
     * 商户号
     *
     * @mbg.generated
     */
    private String merchantNo;

    private Long channelId;

    /**
     * 应用ID
     *
     * @mbg.generated
     */
    private String agentNo;

    /**
     * 订单名称
     *
     * @mbg.generated
     */
    private String orderName;

    private String orderType;

    /**
     * 订单状态  0 待付款   1 已支付  2 支付失败
     *
     * @mbg.generated
     */
    private String orderStatus;

    /**
     * 下单日期
     *
     * @mbg.generated
     */
    private Long orderDate;

    /**
     * 订单描述
     *
     * @mbg.generated
     */
    private String orderDesc;

    /**
     * 币种
     *
     * @mbg.generated
     */
    private String currencyUom;

    /**
     * 金额总计
     *
     * @mbg.generated
     */
    private BigDecimal grandTotal;

    /**
     * 服务费
     *
     * @mbg.generated
     */
    private BigDecimal serviceFee;

    /**
     * 服务费比例
     *
     * @mbg.generated
     */
    private BigDecimal serviceCharges;

    /**
     * 服务费比例
     *
     * @mbg.generated
     */
    private BigDecimal serviceChargesOriginal;

    private Byte isDeductionServiceFee;

    private String notifyUrl;

    private ProductOrderPaymentRecord productOrderPaymentRecord;

    private static final long serialVersionUID = 1L;

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Byte getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Byte isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Long getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Long gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Long getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Long gmtModified) {
        this.gmtModified = gmtModified;
    }

    public String getMerchantOrderId() {
        return merchantOrderId;
    }

    public void setMerchantOrderId(String merchantOrderId) {
        this.merchantOrderId = merchantOrderId;
    }

    public String getMerchantNo() {
        return merchantNo;
    }

    public void setMerchantNo(String merchantNo) {
        this.merchantNo = merchantNo;
    }

    public Long getChannelId() {
        return channelId;
    }

    public void setChannelId(Long channelId) {
        this.channelId = channelId;
    }

    public String getAgentNo() {
        return agentNo;
    }

    public void setAgentNo(String agentNo) {
        this.agentNo = agentNo;
    }

    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Long getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(Long orderDate) {
        this.orderDate = orderDate;
    }

    public String getOrderDesc() {
        return orderDesc;
    }

    public void setOrderDesc(String orderDesc) {
        this.orderDesc = orderDesc;
    }

    public String getCurrencyUom() {
        return currencyUom;
    }

    public void setCurrencyUom(String currencyUom) {
        this.currencyUom = currencyUom;
    }

    public BigDecimal getGrandTotal() {
        return grandTotal;
    }

    public void setGrandTotal(BigDecimal grandTotal) {
        this.grandTotal = grandTotal;
    }

    public BigDecimal getServiceFee() {
        return serviceFee;
    }

    public void setServiceFee(BigDecimal serviceFee) {
        this.serviceFee = serviceFee;
    }

    public BigDecimal getServiceCharges() {
        return serviceCharges;
    }

    public void setServiceCharges(BigDecimal serviceCharges) {
        this.serviceCharges = serviceCharges;
    }

    public BigDecimal getServiceChargesOriginal() {
        return serviceChargesOriginal;
    }

    public void setServiceChargesOriginal(BigDecimal serviceChargesOriginal) {
        this.serviceChargesOriginal = serviceChargesOriginal;
    }

    public Byte getIsDeductionServiceFee() {
        return isDeductionServiceFee;
    }

    public void setIsDeductionServiceFee(Byte isDeductionServiceFee) {
        this.isDeductionServiceFee = isDeductionServiceFee;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }

    public ProductOrderPaymentRecord getProductOrderPaymentRecord() {
        return productOrderPaymentRecord;
    }

    public void setProductOrderPaymentRecord(ProductOrderPaymentRecord productOrderPaymentRecord) {
        this.productOrderPaymentRecord = productOrderPaymentRecord;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", orderId=").append(orderId);
        sb.append(", isDeleted=").append(isDeleted);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", merchantOrderId=").append(merchantOrderId);
        sb.append(", merchantNo=").append(merchantNo);
        sb.append(", channelId=").append(channelId);
        sb.append(", agentNo=").append(agentNo);
        sb.append(", orderName=").append(orderName);
        sb.append(", orderType=").append(orderType);
        sb.append(", orderStatus=").append(orderStatus);
        sb.append(", orderDate=").append(orderDate);
        sb.append(", orderDesc=").append(orderDesc);
        sb.append(", currencyUom=").append(currencyUom);
        sb.append(", grandTotal=").append(grandTotal);
        sb.append(", serviceFee=").append(serviceFee);
        sb.append(", serviceCharges=").append(serviceCharges);
        sb.append(", serviceChargesOriginal=").append(serviceChargesOriginal);
        sb.append(", isDeductionServiceFee=").append(isDeductionServiceFee);
        sb.append(", notifyUrl=").append(notifyUrl);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ProductOrderHeader other = (ProductOrderHeader) that;
        return (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getIsDeleted() == null ? other.getIsDeleted() == null : this.getIsDeleted().equals(other.getIsDeleted()))
            && (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
            && (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()))
            && (this.getMerchantOrderId() == null ? other.getMerchantOrderId() == null : this.getMerchantOrderId().equals(other.getMerchantOrderId()))
            && (this.getMerchantNo() == null ? other.getMerchantNo() == null : this.getMerchantNo().equals(other.getMerchantNo()))
            && (this.getChannelId() == null ? other.getChannelId() == null : this.getChannelId().equals(other.getChannelId()))
            && (this.getAgentNo() == null ? other.getAgentNo() == null : this.getAgentNo().equals(other.getAgentNo()))
            && (this.getOrderName() == null ? other.getOrderName() == null : this.getOrderName().equals(other.getOrderName()))
            && (this.getOrderType() == null ? other.getOrderType() == null : this.getOrderType().equals(other.getOrderType()))
            && (this.getOrderStatus() == null ? other.getOrderStatus() == null : this.getOrderStatus().equals(other.getOrderStatus()))
            && (this.getOrderDate() == null ? other.getOrderDate() == null : this.getOrderDate().equals(other.getOrderDate()))
            && (this.getOrderDesc() == null ? other.getOrderDesc() == null : this.getOrderDesc().equals(other.getOrderDesc()))
            && (this.getCurrencyUom() == null ? other.getCurrencyUom() == null : this.getCurrencyUom().equals(other.getCurrencyUom()))
            && (this.getGrandTotal() == null ? other.getGrandTotal() == null : this.getGrandTotal().equals(other.getGrandTotal()))
            && (this.getServiceFee() == null ? other.getServiceFee() == null : this.getServiceFee().equals(other.getServiceFee()))
            && (this.getServiceCharges() == null ? other.getServiceCharges() == null : this.getServiceCharges().equals(other.getServiceCharges()))
            && (this.getServiceChargesOriginal() == null ? other.getServiceChargesOriginal() == null : this.getServiceChargesOriginal().equals(other.getServiceChargesOriginal()))
            && (this.getIsDeductionServiceFee() == null ? other.getIsDeductionServiceFee() == null : this.getIsDeductionServiceFee().equals(other.getIsDeductionServiceFee()))
            && (this.getNotifyUrl() == null ? other.getNotifyUrl() == null : this.getNotifyUrl().equals(other.getNotifyUrl()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getIsDeleted() == null) ? 0 : getIsDeleted().hashCode());
        result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        result = prime * result + ((getMerchantOrderId() == null) ? 0 : getMerchantOrderId().hashCode());
        result = prime * result + ((getMerchantNo() == null) ? 0 : getMerchantNo().hashCode());
        result = prime * result + ((getChannelId() == null) ? 0 : getChannelId().hashCode());
        result = prime * result + ((getAgentNo() == null) ? 0 : getAgentNo().hashCode());
        result = prime * result + ((getOrderName() == null) ? 0 : getOrderName().hashCode());
        result = prime * result + ((getOrderType() == null) ? 0 : getOrderType().hashCode());
        result = prime * result + ((getOrderStatus() == null) ? 0 : getOrderStatus().hashCode());
        result = prime * result + ((getOrderDate() == null) ? 0 : getOrderDate().hashCode());
        result = prime * result + ((getOrderDesc() == null) ? 0 : getOrderDesc().hashCode());
        result = prime * result + ((getCurrencyUom() == null) ? 0 : getCurrencyUom().hashCode());
        result = prime * result + ((getGrandTotal() == null) ? 0 : getGrandTotal().hashCode());
        result = prime * result + ((getServiceFee() == null) ? 0 : getServiceFee().hashCode());
        result = prime * result + ((getServiceCharges() == null) ? 0 : getServiceCharges().hashCode());
        result = prime * result + ((getServiceChargesOriginal() == null) ? 0 : getServiceChargesOriginal().hashCode());
        result = prime * result + ((getIsDeductionServiceFee() == null) ? 0 : getIsDeductionServiceFee().hashCode());
        result = prime * result + ((getNotifyUrl() == null) ? 0 : getNotifyUrl().hashCode());
        return result;
    }
}
